Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fields required for SSX to events route #250

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mgaonach
Copy link
Collaborator

No description provided.

@mgaonach mgaonach changed the title Add fieldsrequired for SSX to events route Add fields required for SSX to events route Jan 25, 2023
@mgaonach mgaonach marked this pull request as ready for review January 25, 2023 16:16
@codecov-commenter
Copy link

Codecov Report

Merging #250 (e97b6f4) into master (2b22587) will increase coverage by 0.07%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #250      +/-   ##
==========================================
+ Coverage   66.95%   67.02%   +0.07%     
==========================================
  Files         109      109              
  Lines        5072     5083      +11     
==========================================
+ Hits         3396     3407      +11     
  Misses       1676     1676              
Impacted Files Coverage Δ
pyispyb/core/modules/events.py 73.11% <ø> (ø)
pyispyb/core/schemas/datacollections.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b22587...e97b6f4. Read the comment docs.

@@ -47,6 +47,8 @@ class EntityType:
models.DataCollection.DataCollectionGroup,
models.DataCollectionGroup.Workflow,
],
models.DataCollection.SSXDataCollection,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be sensible to make this optional based on if models.DataCollection.SSXDataCollection exists. That way if people dont have the table it doesnt break the app

@@ -155,6 +167,8 @@ class DataCollection(DataCollectionBase):

DataCollectionGroup: DataCollectionGroup
GridInfo: Optional[list[GridInfo]]
SSXDataCollection: Optional[sqlalchemy_to_pydantic(models.SSXDataCollection)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more complicated because its nested and not generated at run time. The easy option is to manually define the Schema in this case. Will have to think about runtime possibilities...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants